%h1.nav_title Open Tickets

%p= link_to("My tickets", tickets_user_path(current_user)) if logged_in?

%p=link_to('Create a ticket',new_ticket_path)

- if @tickets.empty?
  %p There is no tickets now.
- else
  %table.tickets_table
    %tr
      %th ID
      %th Title
      %th Created by
      %th Assign to
      %th Created at
= render(:partial => @tickets)

